// 只存放用户相关的请求

import request from '@/utils/request'

// 封装注册请求
export function regAPI (data) {
  return request.post('/h5/user/register', data)
}

// 封装登陆请求
export function loginAPI (data) {
  return request.post('/h5/user/login', data)
}

// 获取用户信息
export const getuserAPI = () => {
  return request.get('/h5/user/currentUser')
}
